const mongoose=require('mongoose')
mongoose.connect(`mongodb+srv://20040926:c14cudgYRxvUttzQ@userdeer.7jmji.mongodb.net/wmapp`)
const conn=mongoose.connection
conn.on('open',()=>{
    console.log('mongodb连接成功');
})
conn.on('error',(err)=>{
    console.log('mongodb连接失败',err);
})
module.exports=mongoose